home *** CD-ROM | disk | FTP | other *** search
- #! /bin/csh -f
- # Script for testing annotation routines
- #
- # Output files can also be examined with hdfed to see if labels
- # and descriptions are there.
- #
- # Test routines:
- #
- # putSDS_RISan <outfile> <height> <width> <reps>: writes a file
- # containingg some number (<reps>) of SDSs and images. The
- # dimensions of the images are all <height>x<width>.
- # Two out of every three SDSs are given annotations, but
- # all RISs are given annotations.
- #
- # getSDSan <infile>: prints all of the annotations for all of
- # of the SDSs in <infile>.
- #
- # get1anF: FORTRAN version. Gets only second label and description.
- # Enter filename after prompt.
- #
- # getSDSlablist <infile>: gets SDS label list for <infile>
- # getSDSlablistF: FORTRAN version. Enter filename after prompt.
- #
- # file_ann_test <file>: writes *file* annotations to a file and
- # then reads them back.
- # file_ann_test: FORTRAN version. Enter filename after prompt.
- #
- #
- set echo
- #
- # write to file o1 one SDS and one RIS, with annotations
- putSDS_RISan o1 30 40 1
- #
- # ---------------------------
- #
- # write to file o2 10 of each
- putSDS_RISan o2 30 40 10
- #
- # ---------------------------
- #
- # print all SDS annotations stored in o1
- getSDSan o1
- #
- # ---------------------------
- #
- # print all SDS annotations stored in o2
- getSDSan o2
- #
- # ---------------------------
- #
- # by using DFANlablist, get and print all SDS labels stored in o1
- getSDSlblst o1
- #
- # ---------------------------
- #
- # by using DFANlablist, get and print all SDS labels stored in o1
- getSDSlblst o2
- #
- # ---------------------------
- #
- # write file labels and file descriptions to file o3 and read them back
- file_ann o3
- #
- # ---------------------------
- #
- # ********************* NOW FOR THE FORTRAN TESTS *******************
- #
- unset echo
- echo " "
- echo "NOW THE FORTRAN TESTS...enter o2 or 'o2' when prompted for a file name"
- echo " "
- set echo
- #
- # print all SDS annotations stored in the file the user names
- echo " "
- echo "get1anF"
- echo " "
- get1anF
- #
- # ---------------------------
- #
- # get and print all SDS labels stored in the file the user names
- echo " "
- echo "getSDSlblstF"
- echo " "
- getSDSlblstF
- #
- # ---------------------------
- #
- # write file labels and file descriptions to file o4 and read them back
- echo " "
- echo "file_annF"
- echo " "
- file_annF
- #
- # ---------------------------
- #
- unset echo
-
-
-
-